//
//  ForgetViewController.m
//  02_LaGou
//
//  Created by dllo on 16/7/16.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ForgetViewController.h"
#import "ImageTextView.h"
#import "ViewController.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height

@interface ForgetViewController ()

@end

@implementation ForgetViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton *backButton = [ImageTextView createforgetButtonFrame:CGRectMake(10, 30, 70, 30)];
    [backButton addTarget:self action:@selector(backClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
   
    UILabel *checkLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 50, 60, 100, 40)];
    checkLabel.text = @"验证手机";
    checkLabel.textAlignment = 1;
    checkLabel.font = [UIFont systemFontOfSize:21];
    [self.view addSubview:checkLabel];
    
    UIView *forgetTextView = [ImageTextView createForgetTextViewFrame:CGRectMake(0, 140, WIDTH, 112)];
    [self.view addSubview:forgetTextView];
    
    UIButton *nextButton = [ImageTextView createNextButtonFrame:CGRectMake(30, 270, self.view.frame.size.width - 60, 40)];
    [self.view addSubview:nextButton];
    
    UILabel *findKey = [[UILabel alloc] initWithFrame:CGRectMake(30, 330, 195, 30)];
    findKey.text = @"邮箱用户找回密码, 请";
    findKey.textColor = [UIColor grayColor];
    //    findKey.layer.borderWidth = 1;
    findKey.font = [UIFont systemFontOfSize:20];
    findKey.alpha = 0.8;
    [self.view addSubview:findKey];
    
    UIButton *clickButton = [UIButton buttonWithType:UIButtonTypeSystem];
    clickButton.frame = CGRectMake(222, 330, 80, 30);
    [clickButton setTitle:@"点击这里" forState:UIControlStateNormal];
    [clickButton setTitleColor:[UIColor colorWithRed:61.0 / 255 green:160.0 / 255 blue:115.0 / 255 alpha:0.8] forState:UIControlStateNormal];
    clickButton.titleLabel.font = [UIFont systemFontOfSize:20];
    [self.view addSubview:clickButton];

}

- (void)backClick:(UIButton *)button {
    ViewController *viewController = [[ViewController alloc] init];
    [self presentViewController:viewController animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
